import java.util.ArrayList;
import java.util.Collections;


public class Arraylist2 {
public static void main(String[] args) {
	ArrayList<String> ScientistList=new ArrayList<String>();
	ScientistList.add("Brian Kernighan");
	ScientistList.add("Dennis Ritchie");
	ScientistList.add("Douglas McIlroy");
	ScientistList.add("Mike Lesk");
	ScientistList.add("Joe Ossanna");
	System.out.println("Before Sorting Names"+ScientistList);
	Collections.sort(ScientistList);
	System.out.println("After Sorting"+ScientistList);
	
}
}
